package com.cptravel.api;

import android.widget.ProgressBar;
import com.core.api.ApiListenrDefaultImpl;
import com.core.api.B5MBaseRequest;

import java.util.Map;

/**
 * 订单详细
 *author: lscm
 *date: 2014/12/2 20:32
 */
public class GetorderRequest extends B5MBaseRequest<GetorderResponse>
{
    public String orderid;

    public GetorderRequest(ApiListenrDefaultImpl apiListenrDefaultImpl, ProgressBar progressBar)
    {
        super(apiListenrDefaultImpl, progressBar);
    }

    @Override public Class<GetorderResponse> getResponseClass()
    {
        return GetorderResponse.class;
    }

    @Override public String getApiMethod()
    {
        return "getorder";
    }

    @Override public void setApiBody(Map<String, Object> body)
    {
        body.put("orderid", orderid);
    }
}
